<template>
	<view class="">
		<!-- 自定义状态栏 -->
		<view class="status_bar"></view>
		<view class="status_title">
			<view class="status_center">消息</view>
			<image @click="search" class="status_right" src="../../static/zxcvbnd.png" mode="widthFix"></image>
		</view>

		<view class="seectioninfo" @click="aaaaaa">
			<view class="info" v-for="(item,index) in infodata" :key="index">
				<view class="jiao">
					<uni-badge class="uni-badge-left-margin" :text="item.value" absolute="rightTop" size="small"
						type="error">
						<image :src="item.info_icon"></image>
					</uni-badge>
				</view>
				<view class="detailsinfo">
					<view class="dsinfo">{{item.info_name}}</view>
					<view class="detailsif">{{item.info_cont}}</view>
				</view>
				<view class="info-data">{{item.info_date}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: 2,
				infodata: [{
						info_icon: '../../static/logo.png',
						info_name: "日程",
						info_cont: "总经办发布公告:《针对考勤异常人员的管理",
						info_date: "12-09",
						value: 3,
					},
					{
						info_icon: '../../static/logo.png',
						info_name: "事项",
						info_cont: "总经办发布公告:《针对考勤异常人员的管理",
						info_date: "12-09",
						value: 5,
					},
					{
						info_icon: '../../static/logo.png',
						info_name: "公告",
						info_cont: "总经办发布公告:《针对考勤异常人员的管理",
						info_date: "12-09",
						value: 0,
					}
				]
			};
		},
		methods: {
			search() {
				uni.navigateTo({
					url: "../search/search"
				})
			},
			aaaaaa(){
				uni.navigateTo({
					url:"../uploadavatar/uploadavatar"
				})
			}
		}
	}
</script>

<style lang="scss">
	* {
		// border: 1rpx solid;
	}

	page {
		background-color: #EFEFF4;
	}
	.status_bar {
	      height: var(--status-bar-height);
	      width: 100%;
		   background-color: white;
		  position: fixed;
		   z-index: 9999;
	  }
	/* 自定义导航栏 */
	.status_title {
		position: sticky;
		top: 80rpx;
		left: 0;
		right: 0;
		width: 100%;
		z-index: 1;
		box-sizing: border-box;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 100rpx;
		padding: 20rpx 30rpx;
		background-color: #FFFFFF;
	}

	.status_center {
		font-size: 40rpx;
		font-weight: 600;
	}

	.status_right {
		width: 50rpx;
		height: 50rpx;
	}

	.seectioninfo {
		// position: relative;
		// top: 90rpx;
		margin-top: 83rpx;
		padding-bottom: 40rpx;
		background-color: white;

		.info {
			display: flex;
			padding: 20rpx 40rpx;

			.jiao {
				background-color: #86EFC6;
				border-radius: 100%;
				width: 100rpx;
				height: 100rpx;

				.uni-badge-left-margin {
					width: 74rpx;
					height: 74rpx;
					margin: 13rpx;

					image {
						width: 40rpx;
						height: 40rpx;
						margin: 18rpx;
					}
				}
			}

			.detailsinfo {
				width: 62%;
				margin: 0 35rpx;

				.dsinfo {
					font-size: 30rpx;
					font-weight: 600;
				}

				.detailsif {
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
					font-size: 24rpx;
					margin-top: 14rpx;
					font-weight: 400;
				}
			}

			.info-data {
				width: 14%;
				font-size: 26rpx;
				// line-height: 80rpx;
				text-align: right;
			}
		}
	}
</style>
